package com.glela.activ.dao.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.glela.activ.dao.OActivContentMoneyDao;
import com.glela.activ.mapper.OActivContentMoneyMapper;
import com.glela.activ.service.domain.info.OActivInfoContentMoneyVo;

@Repository
public class OActivContentMoneyDaoImpl implements OActivContentMoneyDao {
	private static Logger				LOGGER	= LoggerFactory.getLogger(OActivContentMoneyDaoImpl.class);
	@Autowired
	private OActivContentMoneyMapper	oActivContentMoneyMapper;

	@Override
	public OActivInfoContentMoneyVo queryByConditionId(Long conditionId) {
		try {
			return oActivContentMoneyMapper.selectByConditionId(conditionId);
		} catch (Exception e) {
			LOGGER.error("活动内容：立减有异常：{}", conditionId);
			throw new NullPointerException("活动设置异常");
		}
	}
}